package cn.lizemin.demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
 * @author: lizemin
 * @version: 1.0
 *
 */

@MyAnnotation(getValue = "annotation on class",getNum = 5)
public class Person {
    @MyAnnotation(getValue = "annotation on field",getNum = 6)
    private int age ; //

    @MyAnnotation(getValue = "annotation on method",getNum = 7)
    public void say(){
        System.out.println("hello");
    }

    @MyAnnotation(getNum = 8) //故意不指定getValue
    public void defaultMethod(){

    }



}
